package com.tk.oop.Demo01;

//引用传递
public class Demo04 {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person.name);

        Demo04.change(person);
        System.out.println(person.name);
    }

    public static void change(Person person){
        person.name = "小小";
    }
}

class Person{
    String name;
}
